.TH std::chrono::leap_second 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::chrono::leap_second \- std::chrono::leap_second

.SH Synopsis
   Defined in header <chrono>
   class leap_second;          \fI(since C++20)\fP

   The class leap_second represents the date and time of a leap second insertion.

   Users cannot construct leap_second objects except by copying from existing
   leap_second objects. The library implementation creates leap_second objects when it
   initializes the time zone database and provides const access to these objects.

   leap_second has a defaulted copy constructor and a defaulted copy assignment
   operator.

.SH Member functions

   date obtains the time of leap second insertion
        \fI(public member function)\fP

   Nonmember functions

   operator==
   operator<
   operator<=  compares two leap_second values or a leap_second value and a sys_time
   operator>   \fI(function template)\fP
   operator>=
   operator<=>
   (C++20)

.SH Helper classes

   std::hash<std::chrono::leap_second> hash support for std::chrono::leap_second
   (C++26)                             \fI(class template specialization)\fP
